﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2012/2/8 19:15:28
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sector7.Restaurant.EntityType;
using Sector7.Framework.Core;

namespace Sector7.Restaurant.DAO
{
    /// <summary>
    /// 包间数据访问接口
    /// </summary>
    public interface IRoomDAO
    {
        int Create(RS_Room room);

        /// <summary>
        /// 根据编号获取包间信息
        /// </summary>
        /// <param name="roomId">包间编号</param>
        /// <returns></returns>
        RS_Room Read(int roomId);

        /// <summary>
        /// 根据编号获取包间信息
        /// </summary>
        /// <param name="roomId">包间编号</param>
        /// <param name="isGreedLoad">是否加载桌位信息</param>
        /// <returns></returns>
        RS_Room Read(int roomId, bool isGreedLoad);

        List<RS_Room> ReadAll(bool isGreedLoad);

        /// <summary>
        /// 修改包间信息
        /// </summary>
        /// <param name="delta">变化量</param>
        /// <returns></returns>
        int Update(EntityDelta delta);

        int Delete(int roomId);
    }
}
